﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MyAdmin/QuanLy.master" AutoEventWireup="true" CodeFile="NhaVanChuyen_AM.aspx.cs" Inherits="MyAdmin_NhaVanChuyen_AM" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<fieldset>
<legend align="center"><b>Nhà Vận Chuyển</b></legend>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
	<tr>
		<td align="center">
        <asp:DetailsView ID="dtvNhaVanChuyen_AM" runat="server" Height="50px" 
        Width="125px" AutoGenerateRows="False" BackColor="White" DataKeyNames="ID" 
        DataSourceID="LQDSNhaVanChuyen_AM" 
        HeaderText="Thêm Nhà Vận Chuyển" BorderColor="White" BorderStyle="Ridge" 
        BorderWidth="2px" CellPadding="3" CellSpacing="1" GridLines="None" 
        oniteminserted="dtvNhaVanChuyen_AM_ItemInserted" 
        onitemupdated="dtvNhaVanChuyen_AM_ItemUpdated">
        <EditRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
        <Fields>
            <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
                ReadOnly="True" SortExpression="ID" />
            <asp:BoundField DataField="Ten" HeaderText="Tên" SortExpression="Ten" />
            <asp:BoundField DataField="DiaChi" HeaderText="Địa Chỉ" 
                SortExpression="DiaChi" />
            <asp:BoundField DataField="SoDT" HeaderText="Số Điện Thoại" 
                SortExpression="SoDT" />
            <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
            <asp:BoundField DataField="TenTKNganHang01" HeaderText="TenTKNganHang01" 
                SortExpression="TenTKNganHang01" />
            <asp:BoundField DataField="SoTKNganHang01" HeaderText="SoTKNganHang01" 
                SortExpression="SoTKNganHang01" />
            <asp:BoundField DataField="TenTKNganHang02" HeaderText="TenTKNganHang02" 
                SortExpression="TenTKNganHang02" />
            <asp:BoundField DataField="SoTKNganHang02" HeaderText="SoTKNganHang02" 
                SortExpression="SoTKNganHang02" />
            <asp:BoundField DataField="QuocGia" HeaderText="Quốc Gia" 
                SortExpression="QuocGia" />
            <asp:CheckBoxField DataField="DaXoa" HeaderText="Đã Xóa" 
                SortExpression="DaXoa" />
            <asp:CommandField CancelText="Hủy" EditText="Cập Nhật" InsertText="Thêm" 
                NewText="Thêm" ShowEditButton="True" ShowInsertButton="True" 
                UpdateText="Cập Nhật" />
        </Fields>
        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="#E7E7FF" />
        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
    </asp:DetailsView>
     <asp:Label runat="server" Text="Label" ID="lblThongBaoDTView" ForeColor="White" Visible="false"/>
        </td>
	</tr>
</table><br />
    <asp:GridView ID="gvDSNhaVanChuyen" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" DataKeyNames="ID" 
        DataSourceID="LQDSNhaVanChuyen_AM" AllowSorting="True" BackColor="White" 
        BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
        GridLines="Vertical" Width="100%" 
        onpageindexchanged="gvDSNhaVanChuyen_PageIndexChanged" 
        onpageindexchanging="gvDSNhaVanChuyen_PageIndexChanging" 
        onrowdeleted="gvDSNhaVanChuyen_RowDeleted" 
        onselectedindexchanged="gvDSNhaVanChuyen_SelectedIndexChanged">
        <AlternatingRowStyle BackColor="#DCDCDC" />
        <Columns>
            <asp:CommandField DeleteText="Xóa" SelectText="Chọn" 
                ShowSelectButton="True" />
            <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
                ReadOnly="True" SortExpression="ID" />
            <asp:BoundField DataField="Ten" HeaderText="Tên" SortExpression="Ten" />
            <asp:BoundField DataField="DiaChi" HeaderText="Địa Chỉ" 
                SortExpression="DiaChi" />
            <asp:BoundField DataField="SoDT" HeaderText="Số Điện Thoại" 
                SortExpression="SoDT" />
            <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
            <asp:BoundField DataField="TenTKNganHang01" HeaderText="TenTKNganHang01" 
                SortExpression="TenTKNganHang01" Visible="False" />
            <asp:BoundField DataField="SoTKNganHang01" HeaderText="SoTKNganHang01" 
                SortExpression="SoTKNganHang01" Visible="False" />
            <asp:BoundField DataField="TenTKNganHang02" HeaderText="TenTKNganHang02" 
                SortExpression="TenTKNganHang02" Visible="False" />
            <asp:BoundField DataField="SoTKNganHang02" HeaderText="SoTKNganHang02" 
                SortExpression="SoTKNganHang02" Visible="False" />
            <asp:BoundField DataField="QuocGia" HeaderText="Quốc Gia" 
                SortExpression="QuocGia" />
            <asp:CheckBoxField DataField="DaXoa" HeaderText="Đã Xóa" 
                SortExpression="DaXoa" />
                <asp:TemplateField>
                <ItemTemplate>
                    <asp:CheckBox ID="checkXoa" runat="server" AutoPostBack="True" />
                </ItemTemplate>
                </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
        <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
        <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#0000A9" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#000065" />
    </asp:GridView>
    <table border="0" cellspacing="0" cellpadding="0" width="100%">
    	<tr>
    		<td align="right">
              <asp:Label ID="lblThongBaoGridView" runat="server" ForeColor="White" Text="Label"></asp:Label>
               <asp:Button ID="XoaNhieuBUTTON" runat="server" Text="Xóa Đã Chọn" 
            onclick="XoaNhieuBUTTON_Click" />
            </td>
    	</tr>
    </table>
    <asp:LinqDataSource ID="LQDSNhaVanChuyen_AM" runat="server" 
        ContextTypeName="DataAccess_Layer.DataClasses_RetailerDataContext" 
        EnableDelete="True" EnableInsert="True" EnableUpdate="True" EntityTypeName="" 
        TableName="NhaVanChuyens" oninserted="LQDSHoaDon_AM_Inserted">
    </asp:LinqDataSource>
</fieldset>
</asp:Content>

